<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath %>">
		<meta charset="utf-8"/>
		<title></title>
		<style type="text/css">
			th{background-color: lightblue; color:white}
			tr{height:30px}
			td{color:gray; font-size: 13px; font-family: 微软雅黑;
				text-align: center;
				border-bottom:1px lightblue dashed}
		</style>
	</head>
	<body>
		<table style="width:90%;border: 1px #FFCC66 solid; border-radius:5px" align="center" >
			<caption>班级信息列表</caption>
			<tr height="35px">
				<th width="100px">班级编号</th>
				<th width="150px">班级名称</th>
				<th width="100px">班级人数</th>
				<th width="100px">班主任</th>
				<th >备注</th>
				<th width="120px">操作</th>
			</tr>
			<c:forEach items="${cs}" var="c">
				<tr>
					<td>${c.cid }</td>
					<td>
						<a href="">${c.cname }</a>
					</td>
					<td>${c.count }</td>
					<td>${c.leader }</td>
					<td>${c.remark }</td>
					<td>
						<a href="ClassDeleteServlet?cid=${c.cid}" onclick="javascript:return confirm('你确定删除这个班级信息吗?')">删除</a>
						<a href="ClassQueryServlet?cid=${c.cid}">修改</a>
					</td>
				</tr>
			</c:forEach>
			
		</table>
	
	</body>
</html>